package com.mwt.oes.service.impl;

import com.mwt.oes.dao.AnsRecordMapper;
import com.mwt.oes.domain.AnsRecord;
import com.mwt.oes.dto.SimpleChartDTO;
import com.mwt.oes.dto.StudentRecordDTO;
import com.mwt.oes.service.AnsRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**

 * @create: 2024-02-23 08:41
 **/
@Service
public class AnsRecordServiceImpl implements AnsRecordService {

    @Autowired
    private AnsRecordMapper ansRecordMapper;

    @Override
    public void batchSave(List<AnsRecord> list) {
        ansRecordMapper.batchSave(list);
    }

    @Override
    public boolean doQuestion(String sno) {
        return ansRecordMapper.doQuestion(sno);
    }

    @Override
    public List<SimpleChartDTO> summary(String sno, Integer type) {
        return ansRecordMapper.summary(sno, type);
    }

    @Override
    public List<StudentRecordDTO> studentRecord() {
        return ansRecordMapper.studentRecord();
    }
}
